package org.suk.dp.interpreter;

import java.text.MessageFormat;

/**
 * Description: 音阶<br/>
 * @version V1.0  2017/6/22 16:15  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class Scale extends Expression {
    @Override
    public void execute(String key, double value) {
        String scale = "";
        switch (Integer.valueOf(key)){
            case 1:scale="低音";break;
            case 2:scale="中音";break;
            case 3:scale="高音";break;
        }
        System.out.println(MessageFormat.format("{0} ",scale));
    }
}
